<?php
// 设置响应头为JSON格式
header('Content-Type: application/json');

echo json_encode(['success' => true, 'message' => '测试JSON响应成功']);
?>